package com.wanbangee.marksystem.service.imp;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wanbangee.marksystem.dao.MStudentAnswerSheetDao;
import com.wanbangee.marksystem.dao.MStudentDao;
import com.wanbangee.marksystem.service.SettingTotalMangerService;

@Service
public class SettingTotalMangerImp implements SettingTotalMangerService {
	@Autowired
	private MStudentDao mStudentDao;
	@Autowired
	private MStudentAnswerSheetDao mStudentAnswerSheetDao;
	
	/**
	 * 考试人数 ，
	 * 已扫描数量 ，
	 * 已入库数量
	 * @return
	 */
	
	@Override
	public Map<String, Object> SettingTotalNumManger() {
		// TODO Auto-generated method stub
		Map<String,Object> map = new HashMap<>();
		Integer countMST = this.mStudentDao.selectCountByMStudent();
		Integer countMSA = this.mStudentAnswerSheetDao.selectScanCountByMSA();
		Integer countAC  = this.mStudentAnswerSheetDao.selectActalCountByMSA();
		map.put("countMST", countMST);
		map.put("countMSA", countMSA);
		map.put("countAC", countAC);
		return map;
	}

}
